package com.spring.annotation.test;


import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;

@XmlAccessorType(value=XmlAccessType.FIELD)
@XmlType(propOrder={"id","name"})
public class Bean {
 @XmlAttribute
 private String id;
 @XmlAttribute
 private String name;

public String getId() {
    return id;
}
public void setId(String id) {
    this.id = id;
}
public String getName() {
    return name;
}
public void setName(String name) {
    this.name = name;
}
public Bean(String id, String name, String age) {
    super();
    this.id = id;
    this.name = name;
}
public Bean() {
}
@Override
public String toString() {
    return "Bean [id=" + id + ", name=" + name + "]";
}

}